<html>
  <script>

    // function testFetch(){
    //   return new Promise(async(resolve,reject)=>{
    //     const res = await fetch('https://p9s5xa.laf.run/handleFetch')
    //     const data = await res.json()
    //     resolve(data)
    //   })
    // }
    // const res  =testFetch().then((data)=>{
    //   console.log(data)
    // })
    // console.log(res)

    function testFetch(){
      return new Promise(async(resolve,reject)=>{
        const res = await fetch('https://p9s5xa.laf.run/handleFetch')
        resolve(res)
      })
    }
    const res  =testFetch().then((data)=>{
      return data.json()
    }).then((data2)=>{
      console.log(data2)
    })
    console.log(res)


  </script>
</html>